]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Use pid_t for meta_window_get_pid()
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 8 Apr 2020 14:23:11 +0000 (16:23 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 21 May 2020 23:11:21 +0000 (23:11 +0000)
The return value of meta_window_get_pid() changed again and it now
returns pid_t, which usually just resolves to int on most platforms. We
should still use pid_t now though, so do that.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1188

src/shell-app.c
src/shell-window-tracker.c

index e0f5631c6e2d5461201fd19dc36f9348d8d90ff9..f70bb7d3e7f5dbf14ef1e6a268e6ad5887a16cc6 100644 (file)
@@ -1158,7 +1158,7 @@ shell_app_get_pids (ShellApp *app)
   for (iter = shell_app_get_windows (app); iter; iter = iter->next)
     {
       MetaWindow *window = iter->data;
-      int pid = meta_window_get_pid (window);
+      pid_t pid = meta_window_get_pid (window);
 
       if (pid < 1)
         continue;
index 99ed8270c0efad35c54e731a6fc362d7b8201a4b..0474f001451454c1730c93d0bbc2a0a99d18a386 100644 (file)
@@ -336,7 +336,7 @@ get_app_from_window_pid (ShellWindowTracker  *tracker,
                          MetaWindow          *window)
 {
   ShellApp *result;
-  int pid;
+  pid_t pid;
 
   if (meta_window_is_remote (window))
     return NULL;